//
//  UrlTool.h
//  Jyxt
//
//  Created by 刘日 on 17/5/18.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import <Foundation/Foundation.h>

#define HTMLURL(_sub) [UrlTool createHtmlUrl: _sub]
#define APIURL(_sub) [UrlTool createApiUrl: _sub]
#define MIX_OPEN(_url_sub) [UrlTool mixLoad: _url_sub]

//static NSString *HTML_HOST = @"http://10.39.15.103:80/samples/html/";
//static NSString *HTML_HOST = @"http://42.56.72.129:8081/jyxt-app-h5/samples/html/";
//static NSString *HTML_HOST = @"http://10.32.156.127:8080/jyxt-app-h5/samples/html/";
//static NSString *API_HOST = @"http://10.39.13.21:8888/dlfc-jyxt/jyxt/app/";
//static NSString *API_HOST = @"http://10.32.156.127:8080/jyxt/app/";// 测试服务器

static NSString *HTML_HOST = @"http://42.56.72.129:8081/jyxt-app-h5/samples/html/";//正式环境
static NSString *API_HOST = @"http://42.56.72.129:8081/jyxt/app/";// 正式环境
//static NSString *API_HOST = @"http://10.39.13.82:8080/dlfc-jyxt/jyxt/app/";// 测试服务器

//static NSString *API_HOST = @"http://10.32.159.239:8080/dlfc-jyxt/jyxt/app/";//高智服务器

static NSString *HTML_PERSON_INFO_GRAB_ROOT = @"personInfoGrab/root.html";
static NSString *HTML_PERSON_INFO_GRAB_FLOW = @"personInfoGrab/flow.html";
static NSString *HTML_PERSON_INFO_GRAB_ABROAD = @"personInfoGrab/abroad.html";
static NSString *HTML_PERSON_INFO_GRAB_HOST = @"personInfoGrab/host.html";
static NSString *HTML_PERSON_INFO_GRAB_OTHER = @"personInfoGrab/other.html";

static NSString *HTML_SEARCH_CONTRACT_LIST = @"infoSearch/contract-list.html";
static NSString *HTML_SEARCH_PERSON_LIST = @"infoSearch/person-list.html";
static NSString *HTML_SEARCH_HOUSE_LIST = @"infoSearch/house-list.html";

static NSString *HTML_SEARCH_SEARCH_HISTORY = @"infoSearch/search-history.html";

// 修改密码
static NSString *HTML_USER_CENTER_CHANGE_PASSWORD = @"userCenter/changePassword.html";
// 平台消息列表

static NSString *HTML_MESSAGE_PLATFORM = @"message/platformMessage.html";

// 平台消息列表
static NSString *HTML_INFOSEARCH_CONTRACT_DETAIL = @"infoSearch/contract-detail-app.html";

/////////////////// API

// 设备注册
static NSString *API_CLIENT_REGISTER = @"sysUserMobileInfo/signUp";
// 用户登录
static NSString *API_USER_SIGN_IN = @"sysUserMobileInfo/signIn";
// 合同信息上传
static NSString *API_CONTRACT_INFO_UPLOAD = @"appConContract/addContract";

// 获取未读消息数量
static NSString *API_MSG_NOT_READ_COUNT = @"appSysMessage/getUnreadMessageCount";

// 房源信息上传
static NSString *API_HOUSE_INFO_UPLOAD = @"appHouseInfo/addHouseInfo";
/* 居住证接口 */
// 居住证列表 status 1 2 3
static NSString *API_RESIDENT_PERMIT_LIST = @"resident/residentpermitlist";
// 居住证申请详情
static NSString *API_RESIDENT_PERMIT_DETAIL = @"resident/residentpermitdetail";
// 居住证申请同过
static NSString *API_RESIDENT_PERMIT_APPROVE_APPLY = @"resident/approveapply";
// 居住证申请拒绝
static NSString *API_RESIDENT_PERMIT_REJECT_APPLY = @"resident/rejectapply";
// 获取图片
static NSString *API_RESIDENT_GET_ATTACHMENT = @"resident/getAttachment";

//查看合同详情
static NSString *API_CONTRACTDETAIL = @"resident/contractdetail";

static NSString *API_SEARCHRESIDENCEPERMIT = @"resident/districtlist";
static NSString *API_SEARCHRESIDENCEPOLICE = @"resident/pcsandzrqlist";
static NSString *API_SEARCHCOMMIT = @"resident/advancedquerylist";

@interface UrlTool : NSObject

+ (NSString *)createHtmlUrl: (NSString *)sub;
+ (NSString *)createApiUrl: (NSString *)sub;

+ (void)mixLoad: (NSString *)htmlUrlSub;

@end
